Skip to content

Fix figure 404s on Tailscale Serve (/static//steer/static/) - #2

Merged
GlobalTC merged 1 commit into
mainfrom
cursor/static-figures-tailscale-ecdd
Sep 9, 2026
Merged

Fix figure 404s on Tailscale Serve (/static//steer/static/)#2
GlobalTC merged 1 commit into
mainfrom
cursor/static-figures-tailscale-ecdd

Conversation

@GlobalTC

@GlobalTC GlobalTC commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Markdown figures that use root-absolute paths like /static/figures/foo.png load on localhost and 404 on Tailscale Serve.

Failure mode. The review server serves both / and /steer (and /static/ after path normalize). Direct preview http://127.0.0.1:8766/... therefore finds /static/figures/.... Tailscale Serve is configured as --set-path=/steer only — Composer’s / proxy was removed — so the browser asks https://<magicdns>/static/figures/... and the node has nothing there. The file is on disk under the desk’s static/figures; the URL is just unproxied.

Fix. renderArticle rewrites rendered src/href that start with /static/ to /steer/static/ (desk BASE_PATH). Markdown source can still use /static/figures/... so Composer handoffs keep working on Tailscale. Cache-bust query bumped to ?v=17 (live desk was at v=16).

No Save / Ready / webhook changes. No MagicDNS hostname.

Open in Web Open in Cursor 

Markdown figures that use root-absolute /static/ paths 404 when only
/steer is proxied. Post-process rendered HTML and bump cache-bust to v=17.

Co-authored-by: Bill French <bill.french@gmail.com>
@GlobalTC
GlobalTC marked this pull request as ready for review September 9, 2026 23:02
@GlobalTC
GlobalTC merged commit 5fff307 into main Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants